ManifestConverter.ConvertFromIndexXml Method (Stream, IEnumerable<string>)

Converts from a stream containing an Index.xml LRM file to an XmlDocument containing a <manifest> node of an imsmanifest.xml file.

Parent Type: ManifestConverter

Namespace: Microsoft.LearningComponents.Manifest

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public static ConversionResult ConvertFromIndexXml (
Stream indexXml,
IEnumerable<string> filePaths

)

Parameters

indexXml

Learning Resource index xml, obtained from the index.xml file inside of a Learning Resource.

filePaths

List of file in the package. In general, this list should only contain file paths that are under the root of the package. However, no check is made for this case.

Return Value

A ConversionResult containing the XPathNavigator pointing to the root of an XML document of a SCORM compatible manifest and a ValidationResults log.

Remarks

The indexXml must contain a valid Learning Resource index. Invalid content will cause exceptions.